package com.study5.mybatis.dayima;

import com.yoloho.mybatis.common.annotations.EnableEnhancedDao;
import com.yoloho.spring.annotation.InitDefaults;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@EnableEnhancedDao(scanPath = "com.study5.mybatis.dayima", sqlSessionFactory = "mybatisSessionFactory")
@InitDefaults(cacheRedisRef = "redisTemplate",cacheNamespace = "study5-mybatis-dayima")
public class SpringBootStudy5MybatisDayimaApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootStudy5MybatisDayimaApplication.class, args);
//        while (true) {
//            try {
//                Thread.sleep(1000);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
//
//        }
    }

}
